package model

type GvImUserRoom struct {
	UserID    uint  `json:"user_id" gorm:"index;not null;comment:用户id"`
	RoomID    uint  `json:"room_id" gorm:"index;not null;comment:房间id"`
	RoomType  int   `json:"room_type" gorm:"index;not null;comment:房间类型[1-单聊,2-群聊]"`
	CreatedAt int64 `json:"created_at" gorm:"autoCreateTime;comment:创建时间"`
	UpdatedAt int64 `json:"updated_at" gorm:"autoUpdateTime;comment:更新时间"`
}

func (GvImUserRoom) TableName() string {
	return "gv_im_user_room"
}
